Object.defineProperty(exports, "__esModule", {
    value: !0
});

var e = Object.assign || function(e) {
    for (var s = 1; s < arguments.length; s++) {
        var t = arguments[s];
        for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
    }
    return e;
}, s = require("./host"), t = function(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}(require("./api-generator")), r = require("./api-interceptors"), a = {
    requestInterceptors: r.requestAccesstoken,
    responseInterceptors: r.responseResolveOnlySuccess
}, o = new t.default({
    users: {
        sendcode: [ "POST", {
            alias: "sendCode",
            host: s.apiHost + "/v3",
            isData: !0,
            requestInterceptors: r.requestSignature
        } ]
    },
    weapp: {
        wxusermobile: [ "POST", {
            alias: "getUserMobile",
            requestInterceptors: r.requestAccesstoken
        } ],
        collectformid: [ "POST", {
            requestInterceptors: r.requestAccesstoken
        } ]
    },
    weappcard: {
        ocrbusinesscard: [ "UPLOAD", {
            requestInterceptors: r.requestAccesstoken
        }, {
            name: "file"
        } ],
        searchposition: [ "GET", {
            isData: !0,
            requestInterceptors: r.requestAccesstoken
        } ]
    },
    receipt: {
        searchsuggest: [ "GET", {
            alias: "searchSuggest",
            isData: !0
        } ]
    },
    chat: {
        message: {
            unreadcount: [ "GET", {
                alias: "unreads",
                host: "" + s.apiHost,
                requestInterceptors: r.requestAccesstoken
            } ]
        },
        chat: {
            create: [ "POST", e({
                host: "" + s.apiHost
            }, a) ],
            listsv2: [ "GET", e({
                alias: "chatlists",
                host: "" + s.apiHost
            }, a) ]
        },
        setting: {
            setautoreply: [ "POST", e({
                host: "" + s.apiHost
            }, a) ]
        }
    }
}, s.apiPrefix);

exports.default = o;